<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	{{include file="../login/out.php"}}
	
		
	<link rel="stylesheet" type="text/css" href="Public/bootstrap/css/bootstrap.min.css"/>
	{{css file="Public/yangshi/css/index.css"}}
	<!--<style type="text/css">
		body{
			background: url("Public/yangshi/img/66.jpg");
		}
	</style>-->
</head>
<body>
<table class="table table-hover" style="width: 800px;margin:30px auto">
  	<div id="aaa" style="width: 800px;margin:30px auto">
  		 
		<a href="index.php?a=add"><button type="button" class="btn btn-success">添加班级</button></a>
	</div>
		<tr>
				<td>班级uid</td>
				<td>班级名称</td>
				<td>操作</td>
			</tr>
			{{foreach from=$data key=k item=v}}
			<tr>
				<td>{{$v.uid}}</td>
				<td>{{$v.class}}</td>
				<td>
					<!--index.php?a=guanli&y={{$v.class}}   获取要管理那个班级-->
					<a href="index.php?c=Stu&a=guanli&cid={{$v.cid}}"><button type="button" class="btn btn-info">管理班级学生</button></a>
					<a href="index.php?a=edit&z={{$v.uid}}"><button type="button" class="btn btn-primary">编辑班级</button></a>
					<a href="index.php?a=delete&z={{$v.uid}}"><button type="button" class="btn btn-danger">删除班级</button></a>
				</td>
			</tr>
			{{/foreach}}
</table>
</div>
</body>
</html>